package com.kedacom.demo.modularity.email;

import java.util.List;

import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

import com.kedacom.demo.modularity.core.StringList;

@Path("/email")
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
public interface EmailService {

	@POST
	@Path("/queue")
	public void queue(Email email);

	@GET
	@Path("/send")
	public void send();

	@GET
	@Path("/list")
	public List<Email> listAll();

	@GET
	@Path("/listTitles")
	public StringList listTitles();

}
